package course.service;

import course.pojo.entity.Subject;
import course.pojo.vo.Page;

import java.util.List;

/**
 * @author HLF
 * @date 2022/6/30 20:52
 */
public interface SubjectService {
    Subject getById(Integer suid);

    /**
     * @return 返回自增主键
     */
    int addSubject(Subject subject);

    int updateById(Subject subject);

    int deleteById(Integer suid);

    List<Subject> getList();

    /**/

    int deleteSelect(List<Integer> ids);

    long count();

    Page<Subject> page(Integer pageNo);


    Page<Subject> page2(Integer pageNo,Integer cid);

    Page<Subject> ownPage(Integer pageNo, Integer tid);
    Page<Subject> ownPage2(Integer pageNo, Integer sid);

    Page<Subject> query(String suname, Integer pageNo);

    Subject getBySuname(String suname);

    List<Subject> selectBathByIds(List<Integer> ids);
}
